/*
 * @Author: 贺永胜
 * @Date: 2022-06-12 16:38:36
 * @公众号: 百里青山
 * @LastEditors: 贺永胜
 * @LastEditTime: 2022-06-12 16:38:42
 * @Descripttion:
 */
const { contextBridge, ipcRenderer } = require('electron')

contextBridge.exposeInMainWorld('darkMode', {
  toggle: () => ipcRenderer.invoke('dark-mode:toggle'),
  system: () => ipcRenderer.invoke('dark-mode:system')
})
